package com.nulldev.util.internal.android_compat.atomics.impl.real;

import java.util.concurrent.atomic.AtomicLong;

import com.nulldev.util.data.Variables;
import com.nulldev.util.internal.android_compat.atomics.IPsuedoAtomic;

public class WrappedAtomicLong extends AtomicLong implements IPsuedoAtomic<Long> {

	private static final long serialVersionUID = -963103511704235832L;

	public WrappedAtomicLong() {
		super();
	}

	public WrappedAtomicLong(final long initialValue) {
		super(initialValue);
	}

	@Override
	public Long getValue() {
		return super.get();
	}

	@Override
	public void lazySetValue(final Long val) {
		super.lazySet(Variables.requireNonNullObject(val, "val"));
	}

	@Override
	public void setValue(Long val) {
		super.set(Variables.requireNonNullObject(val, "val"));
	}
}
